<h1>Listing boxes</h1>

<table>
  <tr>
    <th>Number</th>
  </tr>

<% for box in @boxes %>
  <tr>
    <td><%=h box.number %></td>
    <td><%= link_to 'Show', box %></td>
    <td><%= link_to 'Edit', edit_box_path(box) %></td>
    <td><%= link_to 'Destroy', box, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New box', new_box_path %>
